<?php
html::printPath('registrationWizard.success-title', 'registrationWizard.success-desc');
$msg->printMessages();

echo '<p>' . text::getEscaped('registrationWizard.success-thankYou', $this->data->seminar['name']) . '<br/>' . $this->data->viSeminar['name'] . '</p>';
echo '<p>' . text::getEscaped('registrationWizard.success-regList') . ' ';
echo text::getEscaped('userSpace.menu-myAccount') . ' / ' .
     html::anchor('/user/myRegistration', text::get('userSpace.menu-myRegistrations'));
echo '</p>';

if ($this->getAuthUser('is_admin')) {
	echo '<h3>' . text::getEscaped('registrationWizard-registrationConfirmation') . '</h3>';
	echo '<p class="description">' . text::getEscaped('registrationWizard-registrationConfirmation-info') . '</p>';
	$fb = new FormBuilder('registration', $regConfirmationForm);
	$fb->setAction('/admin/registration/confirm');
	$fb->hidden('registration_ids');
	$fb->textarea('org_notes');
	if ($this->getSessionData()->getUserSubstitute()) {
		$fb->checkbox('endUserSubstitution')->label(text::get('registrationWizard.endUserSubstitution', format::personFullName($this->getUser(), false)));
	}
	$fb->submitButton('registrationWizard.confirmRegistration');
	$fb->write();
}
